{if $ctktL->wasEmpty()}
{/if}
<table class = "listing" style="width: 100%; margin: 0 auto; align: center" >
{if $ctktL->wasEmpty()}
	<tr>
		<td class="nodata">Không có dữ liệu</td>
	</tr>
	<tr>
		<td colspan="{$socot}" class="endseparator">&nbsp;</td>
	</tr>

{else}
	<tr>
		<td colspan="3" align="left">{page_info iterator=$ctktL}
		&nbsp  &nbsp &nbsp &nbsp
		{page_links anchor="ctktL" name="ctktL" iterator=$ctktL searchField=$searchField searchMatch=$searchMatch search=$search ngay1 = $Date1 ngay2 = $Date2 Mode=list Year= $Year ChiTiet = $ChiTiet}</td>
		<td>
		</td>

	</tr>
{/if}
</table>

<table class = "listing" style="width: 100%; margin: 0 auto; align: center" >
<tr>
    <th>Ngày</th>
    <th>Số CT</th>
    <th>Diễn giải</th>
    <th class="soquy">TK</th>
    <th>TK ĐU</th>
    <th>Chi tiết</th>
    <th id="sotien">Phát sinh</th>
    <th>Tác vụ</th>
</tr>

{iterate from=ctktL item=ctkt name=ctktL}
{assign var = "tpl_idphieu2" value = $ctkt->getidphieu()}

                <tr>
			{if $tpl_idphieu1 != $tpl_idphieu2}
			    <td >
				{$ctkt->getngct()|date_format:"%d/%m/%Y"|escape}
			    </td>
			    <td>
			       {$ctkt->getsoct()|escape}
			    </td>
			 {else}
				<td colspan = 2></td>
			 {/if}

                    <td id="noidung">{$ctkt->getdiengiai()}</td>
                    <td id="tk">{$ctkt->gettk()}</td>
                    <td id="tkdu">{$ctkt->gettkdu()}</td>
		    <td id="macttk">{$ctkt->getmacttkdu()}</td>
		    <td style="text-align:right" id="sotien">
			 {$ctkt->getsotienvn()|number_format:0:".":"."}
		    </td>
		    <td >
			{if $tpl_idphieu1 != $tpl_idphieu2}
			{assign var = "tpl_idphieu1" value = $tpl_idphieu2}
			 &nbsp &nbsp
			<a  id = '{$ctkt->getidphieu()}' class="actiondelrow" href="javascript:void(0);" onclick="LoadCT('{$ctkt->getidphieu()}', 'chon');">Xem </a>  &nbsp &nbsp

			{/if}
		    </td>



{/iterate}

</table>